package com.lbt.writing.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lbt.writing.dto.User;
import com.lbt.writing.mapper.UserMapper;
import com.lbt.writing.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;
    /**
     * @param username
     * @return
     */
    @Override
    public User getByUsername(String username) {
        return userMapper.selectByUsername(username);
    }
}
